package com.googlecode.sparda.commons.constant;

/**
 * Time's Constant to simplify calculus in milliseconds.
 * All constants are represented in bytes with the lowest possible primitive type.
 * @author Fabio Grucci (<i>alias</i> <b>Phoenix</b>)
 * @version 1.0
 * @since 1.0
 */
public interface TimeConstant {
	/**
	 * Number of milliseconds in a second.
	 */
	public static final short ONE_SECOND = 	1 * 1000;
	/**
	 * Number of milliseconds in a minute.
	 */
	public static final int ONE_MINUTE = 	ONE_SECOND * 60;
	/**
	 * Number of milliseconds in a hour.
	 */
	public static final int ONE_HOUR = 		ONE_MINUTE * 60;
	/**
	 * Number of milliseconds in a day.
	 */
	public static final int ONE_DAY = 		ONE_HOUR * 24;
	/**
	 * Number of milliseconds in a week.
	 */
	public static final int ONE_WEEK = 		ONE_DAY * 7;
	/**
	 * Number of milliseconds in a month.
	 * Month of 31 days .
	 */
	public static final long ONE_MONTH = 	ONE_DAY * 31L;
	/**
	 * Number of milliseconds in a year.
	 * Year of 365 days.
	 */
	public static final long ONE_YEAR =		ONE_DAY * 365L;
	
}